﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InfoPick.Lib.Entity
{
    public class AIETKC
    {
        //中继群名称
        public string GroupName { get; set; }

        //中继群号
        public int GroupNum { get; set; }

        //起始CIC
        public int StartCic { get; set; }

        //终止CIC
        public int EndCic { get; set; }

        //起始TID
        public int StartTid { get; set; }

        //模块号
        //注释掉，因为改版后的aietkc和aietg没有模块号了
        //public int ModuleNum { get; set; }


        public static AIETKC Create(string[] row)
        {
            try
            {
                AIETKC obj = new AIETKC();
                obj.GroupNum = int.Parse(row[0]);
                obj.StartTid = int.Parse(row[1]);
                obj.StartCic = int.Parse(row[3]);
                obj.EndCic = int.Parse(row[4]);
                return obj;
            }
            catch (Exception e)
            {
                return null;
            }
        }
    }
}
